#!/bin/bash

#内存
a=`free | grep Mem | awk '{print "RAM: " $3/$2 * 100.0 "%"}'`

#硬盘
b=`df -h | grep -E "^.+/$" | awk '{ printf "ROM: %s \n",$5 }'`

t=`date +%F`
echo -e "${t}\n${a}\n${b}\n--------------------"
echo -e "${t}\n${a}\n${b}\n--------------------" >> mem-info.txt

